package com.learn.common.enums;

import com.learn.common.utils.ResultUtil;
import com.learn.common.utils.StringUtils;
import com.learn.common.utils.result.CommonResult;

import java.util.Date;

public enum ResultEnum {

    //用户
    ACCOUNT_IS_FORBID(410,"帐号已禁用"),
    ACCOUNT_EXIST(411,"账号已存在"),
    REGISTER_FAIL(412,"注册失败"),
    PASSWORD_ERROR(413,"密码错误"),
    MOBILE_EXIST(414,"手机号已注册"),
    NOT_ACCOUNT(415,"请输入账号"),
    NOT_PASSWORD(416,"请输入密码"),
    NOT_MOBILE(417,"请输入手机号"),
    NOT_ORG_ID(423,"请选择组织"),
    NOT_ORG_NAME(418,"请输入组织名"),
    NOT_ROLE_NAME(419,"请输入角色名"),
    NOT_ITEM_NAME(420,"请输入菜单名"),
    NOT_ITEM_STATE(421,"请选择菜单状态"),
    NOT_TIME_BIRTH(425,"请选择入职时间"),

    //组织
    NOT_ORG_TYPE(422,"请输入组织类型"),
    NOT_ORG_NODE(424,"请输入组织节点"),

    //教员
    NOT_TEACHER_NAME(431,"请输入姓名"),
    NOT_TEACHER_TYPE(433,"请输入授课类型"),
    NOT_TEACHER_MOBILE(434,"请输入联系电话"),
    NOT_TEACHER_ADDRESS(435,"请输入地址"),
    NOT_TEACHER_MAJOR(436,"请输入专业"),
    NOT_TEACHER_DESCRIPTION(437,"请输入简介"),
    NOT_TEACHER_SEX(438,"请输入性别"),
    NOT_TEACHER_ORG(439,"请选择组织机构"),

    //分组
    NOT_GROUPING_NAME(441,"请输入分组姓名"),

    //报名
    ENROLL_USER(442,"未获取用户信息"),

    NOT_DICTTYPE_NAME(443,"未获得字典类型名字"),

    NOT_DICT_NAME(444,"未获得字典名字"),

    NOT_COURSEWARE_TYPE_NAME(445,"请输入课件分类名字"),
    NOT_COURSEWARE_NODE(445,"请选择课件分类节点"),

    NOT_COURSEWARE_NAME(446,"请输入课件名"),
    NOT_COURSEWARE_TYPE(447,"请输入课件类型"),
    NOT_COURSEWARE_HOUR(448,"请输入课件时长"),
    NOT_COURSEWARE_ORG(449,"请选择组织机构"),
    NOT_COURSEWARE_TEACHER(450,"请选择教员"),
    NOT_COURSEWARE_TNAME(451,"请选择教员"),
    NOT_COURSEWARE_TYPE_ID(452,"请选择课件分类"),


    NOT_CHA_NAME(453,"请输入章节名"),
    NOT_CHA_SEQ(454,"请输入顺序"),
    NOT_CHA_COURSE(455,"请选择课程"),
    NOT_CHA_LEARN_TYPE(456,"请选择课程类型"),

    NOT_COURSE_NAME(457,"请输入课程名称"),
    NOT_COURSE_TYPE(458,"请输入课程类型"),
    NOT_COURSE_SORT(459,"请选择所属分类"),
    NOT_COURSE_COMP(460,"请输入主办单位"),
    NOT_COURSE_THEME(461,"请输入学习主题"),
    NOT_COURSE_FAIL_TIME(462,"请选择失效时间"),
    NOT_COURSE_COVER(463,"请选择课程封面"),
    NOT_COURSE_RECOMMEND(464,"请选择是否推荐"),
    NOT_COURSE_CLASS_HOURS(466,"请选择课程类型"),
    NOT_THEME_NAME(466,"请输入主题名称"),
    NOT_THEME_TYPE(466,"请选择主题分类"),
    NOT_COURES(467,"请选择课件"),

    //试卷
    NOT_QUESTIONS_TYPE_NAME(480,"请输入题型标题"),
    NOT_QUESTIONS_SORT_NAME(481,"请输入试题分类名称"),
    NOT_QUESTIONS_SORT_STATE(482,"请选择试题分类状态"),
    NOT_QUESTIONS_KNOWLEDGE(483,"请选择试题知识点"),
    NOT_QUESTIONS_TYPE(484,"请选择题型"),
    NOT_QUESTIONS_FRACTION(485,"请输入试题分数"),
    NOT_QUESTIONS_DIFFICULTY(486,"请选择试题难度"),
    NOT_QUESTIONS_SORT(487,"请选择试题分类"),
    NOT_QUESTIONS_CONTENT(488,"请输入试题内容"),
    NOT_QUESTIONS_ANSWER(489,"请输入试题标准答案"),
    //考试
    NOT_EXAM_SORT_NAME(490,"请输入考试分类名称"),
    NOT_EXAM_SORT_STATE(491,"请选择考试分类状态"),
    NOT_EXAM_CODE(492,"请输入试卷编号"),
    NOT_EXAM_NAME(493,"请输入试卷名称"),
    NOT_EXAM_SORT(494,"请选择所属分类"),
    NOT_EXAM_COVER_URL(495,"请上传试卷封面"),
    NOT_EXAM_FAILURE_TIME(496,"请选择失效时间"),
    NOT_EXAM_TIMING_TYPE(497,"请选择计时选项"),
    NOT_EXAM_ACHIEVEMENT_TYPE(498,"请选择成绩公示类型"),
    NOT_EXAM_SUBMIT(499,"请输入交卷限制"),
    NOT_EXAM_FREQUENCY(510,"请输入次数限制"),
    NOT_EXAM(511,"考试id不能为空"),
    NOT_EXAM_RANDOM(536,"此考次已生成试卷！"),
    NOT_EXAM_RANDOM_COUNT(537,"此考次未生成试卷，不能发布！"),

    // 笔记
    NOT_CHAPTER_ID(512,"章节id不能为空"),
    NOT_COURSE_ID(513,"课程id不能为空"),
    NOT_STUDY_NOTES_TIME(514,"记录时间不能为空"),
    NOT_ENROLL_ID(515,"选课id不能为空"),
    NOT_COURSEWARE_ID(516,"课件id不能为空"),
    NOT_LEARN_TIME(517,"学习时间不能为空"),
    NOT_USER_ID(518,"用户id不能为空"),


    NOT_EXAMINE_SORT_NAME(519,"调查分类名称不能为空"),
    NOT_EXAMINE_SORT_ID(520,"调查分类id不能为空"),
    NOT_EXAMINE_NAME(521,"调查名称不能为空"),
    NOT_EXAMINE_ID(522,"调查id不能为空"),

    NOT_COURSE_STATE(523,"课程未学习完成，不能申请结业！"),

    //竞赛
    NOT_COMPETITION_NAME(530,"竞赛名称不能为空"),
    NOT_COMPETITION_ID(533,"竞赛ID不能为空"),
    // 新闻
    NOT_NEW_TITLE(531,"新闻标题不能为空"),
    NOT_NEW_TEXT(532,"新闻内容不能为空"),
    // 消息
    NOT_MESSAGE_COUTENT(533,"消息内容不能为空"),
    NOT_MESSAGE_TYPE(534,"消息类型不能为空"),
    NOT_MESSAGE_STATE(535,"消息已发布不能修改、删除"),

    // 轮播图
    NOT_PICTURES_URL(538,"轮播图地址不能为空！"),
    // 闯关
    NOT_LEVEL_NAME(539,"闯关名称不能为空！"),

    COURES_EXIST(468,"请不要重复购买"),
    NOT_COURSEWARE_RESOURCES(469,"请选择课件资源"),
    NOT_CHA_USER(470,"用户丢失"),
    //系统
    NOT_EEIST(701,"数据不存在"),
    SUCCESS(200,"操作成功"),
    ERROR(500,"操作失败"),
    LOAD_ERROR(704,"加载错误"),
    PARAM_ERROR(702,"参数错误" ),
    SMS_ERROR(703,"短信验证码错误" ),
    FILE_FORMAT_ERROR(705,"文件格式不正确" );

    private Integer state;
    private String msg;

    ResultEnum(Integer state, String msg) {
        this.state = state;
        this.msg = msg;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
